//
//  Challenge.h
//  Tables
//
//  Created by mathias Muller on 8/23/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Operation.h"
#import "ChallengeConfiguration.h"

@interface Challenge : NSObject {
	NSArray *operations;
	Operation * currentOperation;
	ChallengeConfiguration *conf;
	NSDate * startDate;
	NSTimeInterval timeTaken;
}

@property (retain, nonatomic) NSArray *operations;
@property (assign, nonatomic) Operation *currentOperation;
@property (retain, nonatomic) ChallengeConfiguration *conf;
@property (retain, nonatomic) NSDate *startDate;
@property (assign, nonatomic) NSTimeInterval timeTaken;

+ (Challenge *) startNew:(ChallengeConfiguration*)conf;
- (Operation *)nextOperation;
- (BOOL )hasNextOperation;
- (BOOL)isCorrect;
- (NSInteger)getMaxResponseValue;
@end
